<template>
  <div class="cloud">
    <ul style="padding: 0 10px">
      <li><van-icon name="wap-nav" size=".4rem" /></li>
      <router-link
        to="/cloud/CloudFollow"
        tag="li"
        :class="{ colorS: flag, lineS: flag }"
        >关注</router-link
      >
      <router-link
        to="/cloud/CloudRecommend"
        tag="li"
        :class="{ colorS: !flag, lineS: !flag }"
        >推荐</router-link
      >
      <li>
        <van-icon name="add-o" size=".4rem" color="white" class="icon2" />
      </li>
    </ul>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: "Cloud",
  data() {
    return { flag: false };
  },

  method: {},
};
</script>

<style scoped>
.cloud {
  font-size: 0.2rem;
}
ul {
  height: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
ul li {
  font-size: 15px;
  color: rgb(145, 145, 145);
  /* position: relative; */
  padding-bottom: 5px;
  /* color: rgb(16, 16, 16); */
  /* cursor: url(""); */
}

.icon2 {
  background: rgb(245, 135, 135);
  border-radius: 50%;
  /* border: 1px solid rgb(245, 135, 135); */
}
ul li.active {
  color: rgb(16, 16, 16);
  border-bottom: 2px solid red;
}
</style>
